/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package db;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

/**
 *
 * @author GDF
 */
public class manipular {
    conexion db = conexion.getInstance();
   
    
    public static ResultSet correrConsulta(String query){
        ResultSet result = null;
        try {
             Statement cStatement = conexion.con.createStatement();
             result = cStatement.executeQuery(query);
             return result;
        } catch (SQLException ex) {
            System.out.println("Error al realizar la consulta");
        }
        return result;
    }
    
    
}
